<script>
function myform_submit() {

    return true;
}
</script>


<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
          <h1>基项管理</h1>
          <?=$this->breadcrumb->generateHTML();?>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-pencil"></i><?php if($post_type == 'add') echo '新增';else echo '编辑' ?></h3>
          </div>
          <div class="panel-body">
            <form class="form-horizontal" action="<?=blang_url('orders/Shipping_fee/'.$post_type)?>" method="post" name="productform" onsubmit="return myform_submit()" autocomplete="off" >
                <div class="form-group">
                    <label class="col-sm-2 control-label">产品类型</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="category_id" id="categoryId">
                            <?php foreach ($categoryList as $rs):?>
                            <option value="<?=$rs['id']?>" <?=$optCategory[$rs['id']]?> >
                                <?=$rs['name_ch']?>
                            </option>
                            <?php endforeach;?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">发件国家</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="delivery_country" id="delivery_countryId">
                            <?php foreach ($countryList as $rs):?>
                                <option value="<?=$rs['iso']?>" <?=$optDeliveryCountry[$rs['iso']]?> >
                                    <?=$rs['iso']?> | <?=$rs['name_en']?>
                                </option>
                            <?php endforeach;?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">发件成本运费</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="delivery_cost_fee" class="delivery_cost_fee" value="<?=$shippingS['delivery_cost_fee']?>" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">发件运费</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="delivery_fee" class="delivery_fee" value="<?=$shippingS['delivery_fee']?>" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">收件国家</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="pickup_country" id="pickup_countryId">
                            <?php foreach ($countryList as $rs):?>
                                <option value="<?=$rs['iso']?>" <?=$optPickupCountry[$rs['iso']]?> >
                                    <?=$rs['iso']?> | <?=$rs['name_en']?>
                                </option>
                            <?php endforeach;?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">收件成本运费</label>
                    <div class="col-sm-10">
                        <input name="pickup_cost_fee" class="pickup_cost_fee form-control" value="<?=$shippingS['pickup_cost_fee']?>" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">收件运费</label>
                    <div class="col-sm-10">
                        <input name="pickup_fee" class="pickup_fee form-control" value="<?=$shippingS['pickup_fee']?>" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <input name="id" type="hidden" value="<?=$shippingS['id']?>" />
                        <input class="btn btn-primary" style="padding:8px 40px;" type="submit" value="<?=lang('public_tj')?>" name="submits" />
                    </div>
                </div>
            </form>
          </div>
        </div>
    </div>

</div>